package cn.lsj.lock.config;


public class LockDefinition {

    /**
     * 锁的父路径
     */
    private String zkPath;

    /**
     * 锁等待超时的时间。毫秒
     */
    private long timeout;


    public LockDefinition() {
    }

    public LockDefinition(String zkPath, long timeout) {
        this.zkPath = zkPath;
        this.timeout = timeout;
    }

    public String getZkPath() {
        return zkPath;
    }

    public void setZkPath(String zkPath) {
        this.zkPath = zkPath;
    }

    public long getTimeout() {
        return timeout;
    }

    public void setTimeout(long timeout) {
        this.timeout = timeout;
    }
}
